#include "StdAfx.h"
#include "Player.h"

Player::Player():
	id(0),
	life(0),
	prevLife(0),
	energy(0)
{
}

Player::~Player(void)
{
	OGRE_DELETE entity;
	OGRE_DELETE camera;
}

long Player::getID()
{
	return id;
}

void Player::setID(long id)
{
	this->id = id;
}

Ogre::String Player::getName()
{
	return name;
}

void Player::setName(Ogre::String name)
{
	this->name = name;
}

float Player::getLife()
{
	return life;
}

void Player::setLife(float life)
{
	this->life = life;
}

float Player::getPrevLife()
{
	return prevLife;
}

void Player::setPrevLife(float prevLife)
{
	this->prevLife = prevLife;
}

float Player::getEnergy()
{
	return energy;
}

void Player::setEnergy(float energy)
{
	this->energy = energy;
}

Ogre::Entity* Player::getEntity()
{
	return entity;
}

void Player::setEntity(Ogre::Entity *entity)
{
	this->entity = entity;
	this->node = entity->getParentSceneNode();
}

Ogre::SceneNode* Player::getNode()
{
	return node;
}

Ogre::Camera* Player::getCamera()
{
	return camera;
}

void Player::setCamera(Ogre::Camera *camera)
{
	this->camera = camera;
}